<template>
	<el-card shadow="never">
		<template #header>
			<div class="flex justify-between">
				<span class="text-sm">{{ title }}</span>
				<el-tag type="danger" effect="plain">
					{{ tip }}
				</el-tag>
			</div>
		</template>
		
		<el-row :gutter="20">
			<el-col :span="6" :offset="0" v-for="(item,index) in btns" :key="index">
				<el-card shadow="hover" class="border-0">
					<div class="flex flex-col items-center justify-center">
						<span class="text-xl">{{ item.value }}</span>
						<span class="text-xs">{{ item.label }}</span>
					</div>
				</el-card>
			</el-col>
		</el-row>
		
	</el-card>
</template>

<script setup>
	defineProps({
		title:String,
		tip:String,
		btns:Array
	})
</script>

<style scoped>
	.border-0{
		border: 0;
		background-color: lightgray;
	}
	.text-xl{
		size: 20px;
	}
	.text-xs{
		size: 10px;
		color: dimgray;
	}
</style>